package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 动态记录
 * </p>
 *
 * @author chajiu
 * @since 2021-06-28
 */
@Data
@TableName("ch_post_record")
@ApiModel(value = "PostRecord对象", description = "动态记录")
public class PostRecord implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.INPUT)
    @ApiModelProperty(value = "动态id")
    private String id;

    @TableField(exist = false)
    @ApiModelProperty(value = "是否喜欢该动态了 1喜欢 0不喜欢")
    private Integer isLiked;

    @ApiModelProperty(value = "文本内容")
    private String content;

    @ApiModelProperty(value = "图片 逗号连接")
    private String pics;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户昵称")
    private String userName;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户头像")
    private String userPic;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "1正常 2禁止显示")
    private Integer status;

    @ApiModelProperty(value = "操作备注")
    private String comment;

    @ApiModelProperty(value = "操作人")
    private String operator;

    @ApiModelProperty(value = "喜欢该动态的数量")
    private Integer likeNum;

    @ApiModelProperty(value = "0未删除 1已删除")
    private Integer isDel;

    @TableField(exist = false)
    @ApiModelProperty(value = "年龄")
    private Integer age;

    @TableField(exist = false)
    @ApiModelProperty(value = "性别")
    private String sex;


    public String getId() {
        return id;
    }

    public String getContent() {
        return content;
    }

    public String getPics() {
        return pics;
    }

    public String getUserId() {
        return userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public String getComment() {
        return comment;
    }

    public String getOperator() {
        return operator;
    }

    public Integer getLikeNum() {
        return likeNum;
    }

    public Integer getIsDel() {
        return isDel;
    }
}
